<form id="form_batch">
<table>
	<tr align="center">
		<th><input type="checkbox" class="check" name="chkall" value="on" checked onclick="chkbox(this.form)"></th>
		<th>序号</th>
		<th>流水号</th>
		<th>名称</th>
		<th>规格</th>
		<th>数量</th>
		<th>未入库</th>
		<th>单位</th>
		
		<th>产品</td>
		<th>备注</th>
		<th>状态</th>
	</tr>
	{[foreach name=outer key=key item=item from=$record_in]} 
	{[assign var="no" value="`$key+1`"]}
	
	{[assign var="amount" value="`$item.amount-$item.amount3`"]}
	{[assign var="t1" value="`$t1+$amount`"]}
	<tr align="center" onMouseOver="this.style.backgroundColor='#D2E4FC'" onMouseOut="this.style.backgroundColor='#FFFFFF'">
		<td><input type="checkbox" class="check" name="b_{[$item.id]}" value="{[$item.id]}" checked></td>
		<td>{[$no]}</td>
		<td>{[$item.id]}</td>
		
		<td>{[$item.name|truncate:27:"...":true]}</td>
		<td>{[$item.standard|truncate:21:"...":true]}</td>
		<td>{[$item.amount|string_float]}</td>
		<td>{[$amount|string_float]}</td>
		<td>{[$item.unit]}</td>

		<td>{[$item.mold_t]}</td>
		<td>{[$item.content|truncate:21:"...":true]}</td>

		<td>{[$item.status_t]}</td>
	</tr>
	{[/foreach]}
	<tr align="center">
		<td colspan="5"></td>		
		<td>{[$t1]}</td>
		<td colspan="5"></td>
	</tr>
</table>
</form>